12 步:首先,我们需要确保对列表进行排序以找到最低的成绩。然后我们可以删除它们!

del命令删除指定索引范围内的列表项。

  • 并将Sort List拖入remove_lowest_two()
  • my_list更改为list_of_grades
  • Delete Index Range拖动到下一行。 my_list更改为list_of_grades

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)